﻿<div>

<script type="text/javascript">
    $(function () {
        $("#win1").dialog({
            title: "test dialog", top: 120, left: 160, width: 250, height: 150,
            modal: true,
            autoCloseOnEsc: true
        });
    });
</script>

<h2>jEasyUI Dialog Extensions - ESC键自动关闭窗口</h2>
<p>该部分扩展由文件 jeasyui.extensions.dialog.js 实现。</p>
<hr />
<div id="win1" style="padding: 10px;">当焦点位于此页面（IFRAME）中、此窗口至于本页面最顶层且 modal: true 时，按 "ESC" 键即可关闭此窗口</div>

</div>